<%-- 
    Document   : viewpoll
    Created on : 05/08/2011, 2:13:47 PM
    UserType   : Web User
    Author     : Lan Ye s4223901
    Description: This page contains the all the questions information in the opening poll.
    
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../header.jsp" %>


    <div id="content-container">
        <div id="content">    
            <%--<c:choose>
                <c:when test="1!=1"> validation : the poll is open for web user--%>
                    
                    <h3 align ="center">Poll Name: ${poll.getName()}</h3>
                    <table width ="95%" id ="questiontable" border ="0" cellspacing="0" 
                               cellpadding="3">
                            <tr>
                                <th>QuestionID</th>
                                <th>QuestionText</th>
                                <th>QuestionStatus</th>
                                <th></th>
                            </tr>
                         <c:forEach items="${questionsall}" var="questions">
                                <tr>
                                    <td align ="center"><c:out value="${questions.getId()}"/></td>
                                    <td align ="center"><c:out value="${questions.getText()}"/></td>
                                    <td align ="center"><c:out value="${questions.getStatus()}"/></td>

                                </tr>
                            </c:forEach>

                        </table>
                
                    <%-- </c:when>
            </c:choose>--%>
            
		
<%@ include file="../footer.jsp" %>